<template>
	<view>
		<view class="btn">
			<u-button type="primary" @click="openCamera">点击扫码</u-button>
		</view>
	</view>
</template>

<script>
	import wx from 'weixin-js-sdk';
	export default {
		data() {
			return {

			}
		},
		methods: {
			sancode(){
				wx.scanCode({
					success:(res)=> {
						console.log('res',res);
						uni.redirectTo({
							url:'/pages/login/payfees?xh=' + res.result
						})
					}
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	.btn {
		margin-top: 250rpx;
	}
</style>